﻿CREATE TABLE [bgt].[JournalLine] (
    [JournalId]              INT             NOT NULL,
    [JournalLineNumber]      INT             NOT NULL,
    [AccountId]              SMALLINT        NOT NULL,
    [CostCentreId]           INT             NOT NULL,
    [ProjectId]              INT             NULL,
    [JournalLineAmount]      DECIMAL (18, 2) NOT NULL,
    [JournalLineDescription] VARCHAR (200)   NULL,
    PRIMARY KEY CLUSTERED ([JournalId] ASC, [JournalLineNumber] ASC) WITH (ALLOW_PAGE_LOCKS = ON, ALLOW_ROW_LOCKS = ON, PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF, STATISTICS_NORECOMPUTE = OFF)
);

